﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class IssuerLimitMap : ClassMap<IssuerLimit>
    {
        public IssuerLimitMap()
        {
            Table("ISSUER_LIMIT");
            Id(x => x.IssuerLimitId, "ISSUER_LIMIT_ID").GeneratedBy.Identity();
            Map(x => x.AssetClassId, "ASSET_CLASS_ID");
            Map(x => x.IssuerLimitStartDate, "ISSUER_LIMIT_START_DATE");
            Map(x => x.IssuerLimitExpireDate, "ISSUER_LIMIT_EXPIRE_DATE");

        }
    }
}
